<template>
	<view class="flex-col page">
		<view>
			<view :style="{height:statusBarHeight+44+'px'}"></view>
			<u-navbar @leftClick="$nav(2)" title="支付状态">
			</u-navbar>
		</view>
		
		
		<view class="flex-col justify-center items-center item">
			<image src="/static/pay_success.png" style="width: 150rpx;height: 150rpx;"></image>
			<view style="font-size: 40rpx;margin-top: 20rpx;font-weight: bold;">支付成功</view>
			
			
			<u-button @click="btnClick" style="margin-top: 200rpx;" type="primary" text="查看订单" shape="circle"></u-button>
		</view>
		
		
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:1
			};
		},
		computed:{
			statusBarHeight(){
				return this.$store.state.statusBarHeight + 44
			}
		},
		onLoad(op) {
			this.type = op.goType;
		},
		methods:{
			btnClick(){
				if(this.type == 2){
					uni.navigateBack();
				}else{
					uni.redirectTo({
						url:'/pages/order/order?id=2'
					})
				}
				
				
			}
		}
	}
</script>

<style lang="scss">
.page{
	width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	height: 100vh;
}
.item{
	padding: 100rpx;
}
</style>
